//-----------------------------------------------------------------------
// <copyright file="a_VoteLog_CartService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_VoteLog_CartService
    {
        #region a_VoteLog_Cart

        public static void Createa_VoteLog_Cart(a_VoteLog_Cart a_VoteLog_Cart)
        {            
            try
            {
                a_VoteLog_CartDAO a_VoteLog_CartDAO = new a_VoteLog_CartDAO();
                a_VoteLog_CartDAO.Createa_VoteLog_Cart(a_VoteLog_Cart);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_VoteLog_Cart(a_VoteLog_Cart a_VoteLog_Cart)
        {            
            try
            {
                a_VoteLog_CartDAO a_VoteLog_CartDAO = new a_VoteLog_CartDAO();
                a_VoteLog_CartDAO.Updatea_VoteLog_Cart(a_VoteLog_Cart);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_VoteLog_Cart(int vid)
        {            
            try
            {
                a_VoteLog_CartDAO a_VoteLog_CartDAO = new a_VoteLog_CartDAO();
                a_VoteLog_CartDAO.Deletea_VoteLog_Cart(vid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_VoteLog_Cart Geta_VoteLog_Cart(int vid)
        {            
            try
            {
                a_VoteLog_CartDAO a_VoteLog_CartDAO = new a_VoteLog_CartDAO();
                return a_VoteLog_CartDAO.Geta_VoteLog_Cart(vid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_VoteLog_CartCollection Geta_VoteLog_CartList(a_VoteLog_CartColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_VoteLog_CartDAO a_VoteLog_CartDAO = new a_VoteLog_CartDAO();
                return a_VoteLog_CartDAO.Geta_VoteLog_CartList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_VoteLog_CartCollection Geta_VoteLog_CartList(a_VoteLog_CartColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_VoteLog_CartDAO a_VoteLog_CartDAO = new a_VoteLog_CartDAO();
                return a_VoteLog_CartDAO.Geta_VoteLog_CartList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}